import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgValidateForm } from '@farris/devkit';
var DetailFormComponentViewmodelForm = /** @class */ (function (_super) {
    tslib_1.__extends(DetailFormComponentViewmodelForm, _super);
    function DetailFormComponentViewmodelForm() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgFormControl({
            id: 'merchantName_28b94db5_uaa2',
            name: "{{merchantName_28b94db5_uaa2}}",
            binding: 'merchantName',
            updateOn: 'blur',
            defaultI18nValue: '商户名称',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "merchantName", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'merchantCode_68646a76_oga3',
            name: "{{merchantCode_68646a76_oga3}}",
            binding: 'merchantCode',
            updateOn: 'blur',
            defaultI18nValue: '商户编号',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "merchantCode", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'companyType_9be5c5fb_1y6g',
            name: "{{companyType_9be5c5fb_1y6g}}",
            binding: 'companyType',
            updateOn: 'blur',
            defaultI18nValue: '企业类型',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "companyType", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'merchantType_6ea9d6f3_e9cb',
            name: "{{merchantType_6ea9d6f3_e9cb}}",
            binding: 'merchantType',
            updateOn: 'blur',
            defaultI18nValue: '商户类型',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "merchantType", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'fullName_e669cb2c_chdr',
            name: "{{fullName_e669cb2c_chdr}}",
            binding: 'fullName',
            updateOn: 'blur',
            defaultI18nValue: '企业全称',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "fullName", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'businessLicense_ac799308_2d0v',
            name: "{{businessLicense_ac799308_2d0v}}",
            binding: 'businessLicense',
            updateOn: 'blur',
            defaultI18nValue: '营业执照编码',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "businessLicense", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'address_cab05dbf_nlq8',
            name: "{{address_cab05dbf_nlq8}}",
            binding: 'address',
            updateOn: 'blur',
            defaultI18nValue: '商户地址',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "address", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'email_5efb1145_jkgj',
            name: "{{email_5efb1145_jkgj}}",
            binding: 'email',
            updateOn: 'blur',
            defaultI18nValue: '邮箱',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "email", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'telephone_154a66fc_ee6z',
            name: "{{telephone_154a66fc_ee6z}}",
            binding: 'telephone',
            updateOn: 'blur',
            defaultI18nValue: '联系电话',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "telephone", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'adminstrator_492900b8_e1zu',
            name: "{{adminstrator_492900b8_e1zu}}",
            binding: 'adminstrator',
            updateOn: 'blur',
            defaultI18nValue: '管理员',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "adminstrator", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'remark_8a8b27d8_2ndi',
            name: "{{remark_8a8b27d8_2ndi}}",
            binding: 'remark',
            updateOn: 'blur',
            defaultI18nValue: '备注',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "remark", void 0);
    DetailFormComponentViewmodelForm = tslib_1.__decorate([
        Injectable(),
        NgValidateForm({
            formGroupName: '供应商信息',
            enableValidate: true
        }),
        Injectable()
    ], DetailFormComponentViewmodelForm);
    return DetailFormComponentViewmodelForm;
}(Form));
export { DetailFormComponentViewmodelForm };
